Skip to content

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Sep 30, 2025

This is needed for SpanlessEq to work correctly inside a macro expansion. The context selected for some of the lints may be wrong, but most of them don't handle macros correctly in the first place so this won't really be a regression. Without this change SpanlessEq would essentially assume the root context which isn't always correct.

changelog: none

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 30, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 30, 2025

r? @blyxyas

rustbot has assigned @blyxyas.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Copy link

Lintcheck changes for 504f040

Lint Added Removed Changed
clippy::match_same_arms 0 1 0

This comment will be updated if you push new changes

@Jarcho
Copy link
Contributor Author

Jarcho commented Sep 30, 2025

The lintcheck change looks like the arms could technically be merged. It's no longer being matched because a variable passed in to quote_spanned has a different name. In general this would be a FP because macro expansion can change based on that.

@rustbot
Copy link
Collaborator

rustbot commented Oct 2, 2025

☔ The latest upstream changes (possibly aa1fa10) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants